James Cowgill [Mon, 5 Jan 2015 15:17:02 +0000 (15:17 +0000)]
[PATCH 3/3] Add mips n64 relocation format hack
MIPSEL N64 ELF files use a slightly different format for storing relocation
entries which is incompatible with the normal R_SYM / R_INFO macros.
To workaround this, we rearrange the bytes in the relocation's r_info field
when reading and writing the relocations.
This patch also ensures that strip.c sets the correct value of e_machine
before manipulating relocations so that these changes take effect.
Signed-off-by: James Cowgill <james410@cowgill.org.uk>
Gbp-Pq: Name 0003-Add-mips-n64-relocation-format-hack.patch
James Cowgill [Mon, 5 Jan 2015 15:16:58 +0000 (15:16 +0000)]
[PATCH 1/3] Ignore differences between mips machine identifiers
Little endian binaries actually use EM_MIPS so you can't tell the endianness
from the elf machine id. Also, the EM_MIPS_RS3_LE machine is dead anyway (the
kernel will not load binaries containing it).
Signed-off-by: James Cowgill <james410@cowgill.org.uk>
Gbp-Pq: Name 0001-Ignore-differences-between-mips-machine-identifiers.patch